package com.smsc.headend.task.engine.controller;

import com.smsc.headend.common.utils.RedisUtils;
import com.smsc.headend.task.engine.service.task.TaskPacketService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class PacketController {

    @Autowired
    RedisUtils redisUtils;

    @Autowired
    TaskPacketService taskPacketService;

    /**
     * @param assetNo       device identified no
     * @param operationName operation means a atomic connect with meter. exp: read a value from a class's one attribute
     * @return
     */
    @RequestMapping("/packet/meterRead")
    public byte[] getPacketByMeterAssetNo(@RequestParam("assetNo") String assetNo, @RequestParam("operation") String operationName, @RequestParam("paramJson") String paramJson) {
        return null;
    }

}
